﻿using PaginaWeb.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace PaginaWeb.Controllers
{
    public class WebApiController : ApiController
    {
        // GET api/webapi
        private ContentProducto db = new ContentProducto();

        [HttpGet]
        public IEnumerable ObtenerProductos()
        {
            return db.misproductos.ToList();
        }
    }
}
